package com.duoec.magichour.core.web;

import com.google.common.collect.Maps;
import org.springframework.web.servlet.ModelAndView;

import java.util.Map;

/**
 * Created by ycoe on 16/12/27.
 */
public class MyModelAndView extends ModelAndView {
    private Map<String, Object> modelData = Maps.newHashMap();

    public Map<String, Object> getModelData() {
        return modelData;
    }

    public void addData(String key, Object data) {
        modelData.put(key, data);
    }
}
